package logback;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;




public class test01 {
    //创建一个log日志对象
    public static final Logger LOGGER = LoggerFactory.getLogger("LogBackTest");
    public static void main(String[] args) {


        try {
            LOGGER.info("chu法开始执行~~~~");
            chu(10,10);
            LOGGER.info("chu法执行成功");
        } catch (Exception e) {
            LOGGER.error("chu法执行失败了,出现了bug");
        }
    }

    public static void chu(int a, int b) {
        LOGGER.debug("参数a:"+a);
        LOGGER.debug("参数b:"+b);
        int c = a / b;

        LOGGER.debug("结果是:"+c);
    }
}
